package club.kingyin.easycache.component.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Expire {

    long time() default 72;

    TimeUnit unit() default TimeUnit.HOURS;

    double factor() default 0.7;
}
